home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Financial / Stopwatch2.3 / Source / Session.h < prev    next >
Text File  |  1995-06-12  |  914b  |  39 lines

  1. /*
  2.  * Manage the information regarding a single working session for
  3.  * a single client. ClientInfo maintains a list of these.
  4.  *
  5.  * For legal stuff see the file COPYRIGHT
  6.  */
  7. #import <objc/Object.h>
  8.  
  9. @interface Session : Object
  10. {
  11.   int    minutes;
  12.   char    *description;
  13.   char    *startTimeString;
  14.   char    *startDateString;
  15. }
  16.  
  17. - free;
  18. - init:(const char *)startDate
  19.        time:(const char *)startTime
  20.        duration:(int)elapsedMinutes
  21.        description:(const char *)desc;
  22.  
  23. - read: (NXTypedStream *) stream;
  24. - write:(NXTypedStream *) stream;
  25.  
  26. - setMinutes:(int)value;
  27. - setStartDateString:(const char *)str;
  28. - setStartTimeString:(const char *)str;
  29. - setDescription:(const char *)desc;
  30. - (int)minutes;
  31. - (float)hours;
  32. - (const char *)startDateString;     /* mm/dd/yy */
  33. - (const char *)startTimeString;     /* hh:mm */
  34. - (const char *)description;
  35.  
  36. - (int)dateValue;        /* for use in sort comparisons */
  37. - (int)timeValue;
  38. @end
  39.